package com.demo1;
import java.awt.*;

import javax.swing.*;;

public class Demo5 extends JFrame{
	JLabel jl=null;
	JButton jb1,jb2;
	JPanel jp;
	JSplitPane jsp;

	public static void main(String[] args) {
		Demo5 demo=new Demo5();
		

	}
	public Demo5(){
		jl=new JLabel(new ImageIcon("/cc.jpg"));
		jb1=new JButton();
		jb2=new JButton();
		jp=new JPanel();
		//jp.add(jl);
		//this.add(jl);
		this.setLayout(new BorderLayout());
		this.add(jl,BorderLayout.CENTER);
		this.add(jb1,BorderLayout.NORTH);
		this.add(jb2,BorderLayout.SOUTH);
		
		this.setSize(600, 500);
		this.setLocation(200,200);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}

}
